// port = 5555 npm run dev OR npm run dev --port = 5555
const port = process.env.port || process.env.npm_config_port || 5555
module.exports = {
  publicPath: '/',
  devServer: {
    port: port,
    open: true,
    before: require('./mock/mock-server.js'),
    overlay: {
      warnings: false,
      errors: true
    }
    /* proxy: {
      '/api': {
        target: 'http://localhost:3000',
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }, */
  }
}
